home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20031118-20041115
/
000378_fdc@columbia.edu_Wed Sep 1 12:32:19 2004.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Path: newsmaster.cc.columbia.edu!not-for-mail
From: Frank da Cruz <fdc@columbia.edu>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: GPS NMEA time reader
Date: 1 Sep 2004 16:25:25 GMT
Organization: Columbia University
Lines: 39
Message-ID: <slrncjbtvl.iqr.fdc@sesame.cc.columbia.edu>
References: <ch4m71$koi$2@blue.rahul.net>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1094055925 5933 128.59.59.56 (1 Sep 2004 16:25:25 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 1 Sep 2004 16:25:25 GMT
User-Agent: slrn/0.9.8.0 (SunOS)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15144
On 2004-09-01, dold@GPSXNMEAXt.usenet.us.com <dold@GPSXNMEAXt.usenet.us.com>
wrote:
: I have a commodity GPS (Garmin eTrex)
: This produces NMEA strings at 4800 baud that I can read easily with
: Kermit95.
:
: A string that starts with $GPRMC contains the date and time in GMT.
: The strings appear every few seconds, with a granularity of +/-2 seconds.
:
: What I want to do is read these with Kermit95 and use them to set the time
: and date on a Windows PC. The fact that it is GMT is a little bit of a
: problem, and I thought someone else might already have done the work for
: me.
:
: If the script also worked on MSDOS and Unix, that would be great. On Unix,
: I think the GMT offset is not a big deal, but I don't know what to do on
: Windows/DOS.
:
C-Kermit and K95 include date/time functions that can handle GMT/localtime
conversion:
http://www.columbia.edu/kermit/ckermit80.html#x8.13
MS-DOS Kermit, no. DOS itself (of course) has no knowledge of timezones.
: This is from 010904 September 1, 2004, at 13:40:58 GMT
: Once satellite lock is found, the position appears
: $GPRMC,134058,A,3850.1234,N,12230.5678,W,0.0,71.4,010904,15.0,E,A*0D
: ------ ------
: Before satellite lock is found, there is no position, and no time.
: The ",V," indicates that the fix is no good.
: $GPRMC,,V,,,,,,,010904,15.0,E,N*00
:
You didn't say how to decode these, but if a time is in there, Kermit
string and date/time functions can deal with it. As to actually setting
the system time, you'll need to invoke an external program (RUN or RUN START)
with appropriate command line options and privileges.
- Frank